package com.lhkj.ct.meta.modules.warning.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.lhkj.ct.base.enums.DeleteStatus;
import com.lhkj.ct.base.validator.group.ValGroups;
import com.lhkj.ct.meta.modules.common.enums.RiskLevel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 心理咨询记录
 * </p>
 *
 * @author jobob
 * @since 2023-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblPsyConsRecords对象", description="心理咨询记录")
public class TblPsyConsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "心理咨询id")
    private String id;

    @NotBlank(message = "档案id不能为空", groups = {Default.class, ValGroups.User.class})
    @ApiModelProperty(value = "档案id")
    private String patId;

    @ApiModelProperty(value = "姓名")
    private String patName;

    /**
     * 这里存字典值
     */
    @ApiModelProperty(value = "性别")
    private String patSex;

    @ApiModelProperty(value = "年龄")
    private String patAge;

    @ApiModelProperty(value = "出生日期")
    private LocalDate patBirthday;

    @ApiModelProperty(value = "手机号")
    private String patMobile;

    @NotNull(message = "请选择风险等级")
    @ApiModelProperty(value = "风险等级")
    private RiskLevel riskLevel;

    @NotBlank(message = "请填写评估内容")
    @ApiModelProperty(value = "评估内容")
    private String evaluationContent;

    @NotBlank(message = "请选择问题类型")
    @ApiModelProperty(value = "问题类型")
    private String type;

    @ApiModelProperty(value = "联系人")
    private String contacts;

    @ApiModelProperty(value = "联系方式")
    private String contactPhone;

    @ApiModelProperty(value = "关系")
    private String relationship;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "执行人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "治疗时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "是否刪除")
    private DeleteStatus delFlag;


}
